package com.cxso.example.request.wlpt;

import com.cxso.example.domain.wlpt.driver.ApiDriverAuthDomain;
import com.cxso.example.domain.wlpt.driver.ApiDriverBasicDomain;
import com.cxso.example.domain.wlpt.vehicle.ApiVehicleAuthDomain;
import com.cxso.example.domain.wlpt.vehicle.ApiVehicleBasicDomain;
import com.cxso.example.domain.wlpt.vehicle.ApiVehicleOwnerAuthDomain;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;


@Setter
@Getter
@Schema(description = "创建运力")
public class ApiConsignorCapacityCreateReq extends ApiBaseReq {

    @Schema(description = "司机基础信息")
    @Valid
    @NotNull(message = "司机基础信息不能为空")
    private ApiDriverBasicDomain driverBasicDomain;

    @Schema(description = "司机认证信息")
    @Valid
    private ApiDriverAuthDomain driverAuthDomain;

    @Schema(description = "车辆基础信息")
    @Valid
    @NotNull(message = "车辆基础信息不能为空")
    private ApiVehicleBasicDomain vehicleBasicDomain;

    @Schema(description = "车辆认证信息")
    @Valid
    private ApiVehicleAuthDomain vehicleAuthDomain;

    @Schema(description = "车辆自有认证信息")
    @Valid
    private ApiVehicleOwnerAuthDomain vehicleOwnerAuthDomain;

}
